package com.filldream.fastboot.base.request.pc.systemUser;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotEmpty;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 *
 */
@ApiModel(value = "pc-添加后台管理员")
@Data
public class AddSystemUserSTO {

    @NotEmpty
    @ApiModelProperty("账号")
    private String account;

    @NotEmpty
    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("联系方式")
    private String phone;

    @NotEmpty
    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("备注")
    private String memo;

    @ApiModelProperty("头像")
    private String img;

    @NotNull(message = "角色不能为空，若没有角色则可前往创建角色")
    @ApiModelProperty("角色ID")
    private List<Long> roleId;

    @ApiModelProperty(value = "关联ID，若没有则填0表示是系统的管理员",hidden = true)
    private Long linkId;

    @ApiModelProperty(value = "部门ID")
    private Long deptId;

    @ApiModelProperty(value = "岗位ID")
    private Long postId;

}
